﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.dataaccess.model
{
    [XrmEntity("new_screencallback", "new_screencallbackid")]
    public class ScreenCallBackModel
    {
        [XrmFieldMapping("new_screencallbackid",XrmAttributeType.UniqueIdentifier)]
        public System.Guid new_screencallbackid { get; set; }

        [XrmFieldMapping("new_lead", XrmAttributeType.EntityReference)]
        [XrmReferenceType("lead", default(string))]
        public Nullable<System.Guid> new_lead { get; set; }
        public string leadName { get; set; }

        [XrmFieldMapping("new_account", XrmAttributeType.EntityReference)]
        [XrmReferenceType("account", default(string))]
        public Nullable<System.Guid> new_account { get; set; }
        public string accountName { get; set; }
        public Nullable<System.DateTime> createdon { get; set; }

        [XrmFieldMapping("new_contactresult", XrmAttributeType.XrmOptionSetValue)]
        public Nullable<int> new_contactresult { get; set; }

        [XrmFieldMapping("new_communicateresult", XrmAttributeType.XrmOptionSetValue)]
        public Nullable<int> new_communicateresult { get; set; }

        [XrmFieldMapping("new_description", XrmAttributeType.String)]
        public string new_description { get; set; }

        [XrmFieldMapping("new_screen", XrmAttributeType.EntityReference)]
        [XrmReferenceType("new_screen", default(string))]
        public Nullable<System.Guid> new_screen { get; set; }
        public string screenName { get; set; }
        public string new_name { get; set; }

        [XrmFieldMapping("ownerid", XrmAttributeType.EntityReference)]
        [XrmReferenceType("systemuser", default(string))]
        public System.Guid Ownerid { get; set; }
        public string DomainName { get; set; }

        [XrmFieldMapping("new_task", XrmAttributeType.EntityReference)]
        [XrmReferenceType("task", default(string))]
        public Nullable<System.Guid> new_task { get; set; }

        [XrmFieldMapping("new_propaganda", XrmAttributeType.EntityReference)]
        [XrmReferenceType("new_propaganda", default(string))]
        public Nullable<System.Guid> new_propaganda { get; set; }

        public Reservation reservation { get; set; }
    }
}
